<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>user</title>
	<%@ include file="/common/meta.jsp"%>
	<s:head theme="ajax"/>	
</head>

<body>
	<s:include value="/common/content_title.jsp">
		<s:param name="title">用户信息修改</s:param>
	</s:include>
	
	<div id="content-data">
	 <s:form action="updateAction" method="post" namespace="/user" enctype="multipart/form-data">
	 <div id="detail-list-wrapper">
	 	<%--加一个隐藏于，保证更新时候，针对同一个对象操作 --%>
	 	<s:hidden name="userInfo.id"></s:hidden>
	 	<s:hidden name="userInfo.userPasswd"></s:hidden>
 		<table class="detail-list">
			<tr>
				<td class="detail-title" colspan="4">
					<span class="table-title">用户信息修改</span>
				</td>
			</tr>
 			<tr>
 				<td class="label-cell">登录帐号</td>
 				<td class="data-cell">
 					<s:property value="userInfo.userAccount"/>
 				</td>
 				<td class="label-cell">
 					<span class="required">真实姓名</span>
 				</td>
 				<td class="data-cell">
 					<s:textfield name="userInfo.userName" required="true"></s:textfield>
 				</td>
 			</tr>
 			<tr>
 				<td class="label-cell">用户性别</td>
 				<td class="data-cell">
 					<s:radio name="userInfo.userGender" list="#{0:'男',1:'女' }"
						listKey="key" listValue="value"></s:radio>
				</td>
 				<td class="label-cell">出生日期</td>
 				<td class="data-cell">
 					<s:datetimepicker name="userInfo.userBirth" toggleType="explode"
 					 	value="today" type="date" language="zh_CN"
						displayFormat="yyyy-MM-dd"></s:datetimepicker>
				</td>
 			</tr>
 			<tr>
 				<td class="label-cell">所属部门</td>
 				<td class="data-cell">
 					<s:textfield name="userInfo.userDept"></s:textfield>
 				</td>
 				<td class="label-cell">所处职位</td>
 				<td class="data-cell">
 					<s:textfield name="userInfo.userDuty"></s:textfield>
 				</td>
 			</tr>
 			<tr>
 			<td class="label-cell">现住地址</td>
 				<td class="data-cell" colspan="3">
 					<s:textfield name="userInfo.userAddr" cssClass="long-input-text"></s:textfield>
 				</td>
 			</tr>
 			<tr>
 				<td class="label-cell">备注信息</td>
 				<td class="data-cell" colspan="3">
 					<s:textarea name="userInfo.userRemark" cols="65"></s:textarea>
 				</td>
 			</tr>
 			<tr>
 				<td class="label-cell">上传照片</td>
 				<td class="data-cell">
 					<s:file name="photoFile" ></s:file>
 				</td>
 			</tr>
 		</table>
 		<div align="center">
 			<input type="submit" value="提交"/>
 		</div>
 	</div>
	</s:form>
	</div>
</body>
</html>